package me.monster.smarttraffic;

import android.app.Application;

import androidx.annotation.Nullable;

import com.jeremy.retrofitmock.RetrofitMock;
import com.orhanobut.logger.AndroidLogAdapter;
import com.orhanobut.logger.Logger;

import me.monster.smarttraffic.tool.Util;

/**
 * @description
 * @author: Created jiangjiwei in 2020-02-10 17:53
 */
public class App extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

        RetrofitMock.init(this, "mock_demo.json");
        Util.init(this);
        Logger.addLogAdapter(new AndroidLogAdapter() {
            @Override
            public boolean isLoggable(int priority, @Nullable String tag) {
                return BuildConfig.DEBUG;
            }
        });
    }
}
